import javax.swing.WindowConstants;

import partes_GUI.HPPanel;
import partes_GUI.ExpLvl_GUI.ExpLvlPanel;
import partes_GUI.Stats_GUI.StatsPanel;
import DnD.DnD_ELCF;
import DnD.DnD_SCF;


public class DnDPrincipal extends javax.swing.JFrame {

	private static final long serialVersionUID = -17034921887627251L;
	private StatsPanel statsDnD;
	

	public static void main(String[] args) {
		DnDPrincipal inst = new DnDPrincipal();
		inst.setVisible(true);
	}
	
	public DnDPrincipal() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			getContentPane().setLayout(null);
			setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
			{
				statsDnD = new StatsPanel(new DnD_SCF());
				getContentPane().add(statsDnD, null);
				statsDnD.Ubicar(0, 0);
				ExpLvlPanel lvl= new ExpLvlPanel(new DnD_ELCF());
				getContentPane().add(lvl);
				lvl.Ubicar(statsDnD.getWidth()+10,0);
				HPPanel hp=new HPPanel();
				getContentPane().add(hp);
				hp.Ubicar(statsDnD.getWidth()+20+lvl.getWidth(),0);
			}
			pack();
			this.setSize(600, 300);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
